"""
@author: xxw
@file: 统计字母、数字、其他字符的个数.py
@time: 2023/4/20 16:00
"""
str = input("请输入一串字符串")

a, b, c = 0, 0, 0
for i in str:
    if i.isdigit():
        a += 1
    elif i.isalpha():
        b += 1
    else:
        c += 1
print(f"字符串中{a}个数字，{b}个字母，{c}个其他字符")
